<template>
  <uvTextarea
      :adjustPosition="adjustPosition"
      :autoHeight="autoHeight"
      :border="border"
      :confirmType="confirmType"
      :count="count"
      :cursor="cursor"
      :cursorSpacing="cursorSpacing"
      :customStyle="customStyle"
      :disableDefaultPadding="disableDefaultPadding"
      :disabled="disabled"
      :fixed="fixed"
      :focus="focus"
      :formatter="formatter"
      :height="height"
      :holdKeyboard="holdKeyboard"
      :maxlength="maxlength"
      :placeholder="placeholder"
      :selectionEnd="selectionEnd"
      :selectionStart="selectionStart"
      :showConfirmBar="showConfirmBar"
      :value="value"
      @blur="e => $emit('blur')"
      @confirm="e => $emit('confirm')"
      @focus="e => $emit('focus')"
      @input="e => $emit('input', e)"
      @keyboardheightchange="e => $emit('keyboardheightchange')"
      @linechange="e => $emit('linechange', e)"
  ></uvTextarea>
</template>

<script>
/**
 * 此组件存在的理由是，在nvue下，u--textarea被uni-app官方占用了，u-textarea在nvue中相当于textarea组件
 * 所以在nvue下，取名为u--textarea，内部其实还是u-textarea.vue，只不过做一层中转
 */
import uvTextarea from '../u-textarea/u-textarea.vue';
import props from '../u-textarea/props.js'

export default {
  name: 'u--textarea',
  mixins: [uni.$u.mpMixin, props, uni.$u.mixin],
  components: {
    uvTextarea
  },
}
</script>
